import * as homeGQL from './home.gql'
import * as loginAnalyzesGQL from './login_analyze.gql'
import * as signInAnalyzesGQL from './sign_in_analyze.gql'
import * as homeworkReviewAnalyzesGQL from './homework_review_analyze.gql'
import * as memberNumberAnalyzesGQL from './member_number_analyze.gql'

import getClient from '@/graphql/client'

export const loginAnalyzes = (params) => getClient(true).query({
  query: loginAnalyzesGQL,
  variables: params,
  fetchPolicy: 'network-only'
})

export const homeworkReviewAnalyzes = (params) => getClient(true).query({
  query: homeworkReviewAnalyzesGQL,
  variables: params,
  fetchPolicy: 'network-only'
})

export const memberNumberAnalyzes = (params) => getClient(true).query({
  query: memberNumberAnalyzesGQL,
  variables: params,
  fetchPolicy: 'network-only'
})

export const signInAnalyzes = (params) => getClient(true).query({
  query: signInAnalyzesGQL,
  variables: params,
  fetchPolicy: 'network-only'
})

export const homeAnalyze = () => getClient(true).query({
  query: homeGQL,
  fetchPolicy: 'network-only'
})
